package com.shanzhe.eshop.common.jdk;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @Author yinwei
 * @create 2021/12/20
 * @Version 1.0
 */
public class ArrayBlockQueueDemo {

    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> arrayBlockingQueue = new ArrayBlockingQueue<String>(10);
        arrayBlockingQueue.put("张三");
        arrayBlockingQueue.take();
        arrayBlockingQueue.remove(0);
        arrayBlockingQueue.size();
        arrayBlockingQueue.iterator();
    }
}
